package han;

public class J09Account {

	public static void main(String[] args) {
		int aid[] = new int[2];
		int balance[] = new int[2];
		double interestRate[] = new double[2];
		String dateCreated[] = new String[2] ;
		double getMonthlyInteresRate[] = new double[2];
		int withDraw[] = new int[2];
		int deposit[] = new int[2];
		
		input(aid, balance, interestRate, dateCreated);
		getMonthlyInteresRate(getMonthlyInteresRate, interestRate);
		withDraw(withDraw, balance);
		deposit(deposit, withDraw, balance);
		
		
		
		System.out.println("계좌 번호 = " + aid[1]);
		System.out.println("잔액 = " + withDraw[1]);
		System.out.println("월간이자율 = " + getMonthlyInteresRate[1]);
		System.out.println("통장개설날짜 = " + dateCreated[1]);

	}
		public static void input(int[] aid, int[] balance,double[] interestRate,String[] dateCreated){
			aid[1] = 1122;
			balance[1] = 20000;
			interestRate[1] = 4.5;
			dateCreated[1] = "3월 10일";
		}
		public static void getMonthlyInteresRate(double[] getMonthlyInteresRate,double[] interestRate){
			getMonthlyInteresRate[1] = interestRate[1] / 12;
		}
		public static void withDraw(int[] withDraw,int[] balance){
			withDraw[1]= balance[1] - 2500 - 3000;
		}
		public static void deposit(int[] deposit,int[] withDraw,int[] balance){
			deposit[1] = withDraw[1] + balance[1];
		} 
}
